package cc.fs.kotlin.ui.activity

import android.os.Bundle
import android.os.Handler
import android.os.Message
import cc.fs.kotlin.ui.demo.RecycleViewDemo
import cc.fs.kotlin.ui.activity.helper.BaseActivity
import cc.fs.kotlin.ui.demo.ExceptionDemo
import cc.fs.kotlin.ui.demo.ImageSelectDemo
import cc.fs.kotlin.ui.demo.PermissionDemo
import org.jetbrains.anko.intentFor

/**
 * Created by fostion on 1/25/16.
 */
class StartActivity : BaseActivity(){

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Handler().postDelayed({
            nextScreen()
        },3000)
    }

    fun nextScreen() {
        startActivity(intentFor<ExceptionDemo>())
        finish()
    }

    override fun handler(msg: Message) {
    }
}
